﻿using Essensoft.Paylink.WeChatPay.V3.Response;
using Shop.Core.Share;

namespace Shop.IServices
{
    /// <summary>
    /// 微信服务
    /// </summary>
    public interface IWechatAppService : IAppService
    {
        /// <summary>
        /// 微信付款
        /// </summary>
        /// <param name="OutTradeNo"></param>
        /// <param name="OpenId"></param>
        /// <param name="amount"></param>
        /// <returns></returns>
        Task<AppResult<object>> AppletPay(string OutTradeNo, string OpenId, decimal amount);

        /// <summary>
        /// 微信转账
        /// </summary>
        /// <param name="outTradeNo">外部单号</param>
        /// <param name="openId">收款用户openId</param>
        /// <param name="name">收款用户姓名</param>
        /// <param name="amount">转账金额</param>
        /// <returns></returns>
        Task<WeChatPayTransferBatchesResponse> TransferBatches(string outTradeNo, string openId, string name, decimal amount);
    }
}
